package com.tgky.ybzb.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tgky.ybzb.entity.result.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 知识图谱类型表（树表）(ZstpType)表实体类
 *
 * @author makejava
 * @since 2024-09-06 10:25:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="知识类型表", description="知识类型表")
@TableName("zstp_type")
public class ZstpType extends BaseEntity implements Serializable {
    //主键
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //知识图谱类型名称
    @TableField(value = "type_name")
    @ApiModelProperty(value = "类型名称", position = 1)
    private String typeName;
    //类型码值
    @TableField(value = "code")
    @ApiModelProperty(value = "类型码值", position = 2)
    private Integer code;
    //删除标记
    @TableField(value = "delete_flag")
    @ApiModelProperty(value = "删除标记", position = 3)
    private Integer deleteFlag;
    //排序序号
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序序号", position = 4)
    private Integer sort;
    //父级id
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父级id", position = 5)
    private Integer parentId;

    @TableField(exist = false)
    @ApiModelProperty(value = "子集对象", position = 6)
    private List<ZstpType> childrenList;
}

